package com.xuelang.pipeline.worker.client.configmap.dto;

import com.xuelang.pipeline.worker.client.common.result.BaseK8sDTO;
import io.kubernetes.client.openapi.models.V1ConfigMap;
import lombok.Data;

import jakarta.validation.constraints.NotEmpty;
import java.util.Map;

/**
 * @author liuyuan.ly
 * @since 2024/7/23 10:39
 */
@Data
public class ConfigMapDTO extends BaseK8sDTO {

    private static final long serialVersionUID = -3660401467938092930L;

    @NotEmpty(message = "命名空间不能为空")
    private String namespaceName;

    private String configMapName;

    private V1ConfigMap v1ConfigMap;

    private Map<String,String> data;
}
